import request from './../utils/request'

// 获取轮播图数据
export function getBannerList () {
  return request({
    url: '/banner/list'
  })
}

// 添加轮播图
export function addBanner (params) {
  return request({
    url: '/banner/add',
    method: 'POST',
    data: params
  })
}
// 删除单条数据
export function deleteBanner (params) {
  return request({
    url: '/banner/delete',
    data: params
  })
}